package OBS;

import java.util.GregorianCalendar;

/**
 * OBSReportSendLog bruges ikke i det eksisterende system.
 * Er nyttig hvis man senere ønsker at udbygge for eksempel GUI med en funktion
 * der kan vise ReportSendLog.
 * @author Jesper Wistoft Nielsen
 */

public class OBSReportSendLog {
    private int ID;
    private OBSReportSubscription subscription;
    private GregorianCalendar timeSent;
    private String statusMessage;

    /**
     * @param ID
     * @param subscription
     * @param timeSent
     * @param statusMessage
     */
    public OBSReportSendLog(int ID, OBSReportSubscription subscription, GregorianCalendar timeSent, String statusMessage) {
        this.ID = ID;
        this.subscription = subscription;
        this.timeSent = timeSent;
        this.statusMessage = statusMessage;
    }

   /**
    * 
    * @return
    */
    public String toString() {
        return timeSent.toString();
    }
   
    /**
     * 
     * @return
     */
    public int getID() {
        return ID;
    }

    /**
     * 
     * @return
     */
    public OBSReportSubscription getSubscription() {
        return subscription;
    }

    /**
     * 
     * @param subscription
     */
    public void setObsReportSubscription(OBSReportSubscription subscription) {
        this.subscription = subscription;
    }

    /**
     * 
     * @return
     */
    public String getStatusMessage() {
        return statusMessage;
    }

    /**
     * 
     * @param statusMessage
     */
    public void setStatusMessage(String statusMessage) {
        this.statusMessage = statusMessage;
    }

    /**
     *
     * @return
     */
    public GregorianCalendar getTimeSent() {
        return timeSent;
    }

    /**
     * 
     * @param timeSent
     */
    public void setTimeSent(GregorianCalendar timeSent) {
        this.timeSent = timeSent;
    }
}
